import requests

req = requests.get('https://www.baidu.com')

print(req.status_code)
# 返回的结果
# 200

print(req.encoding)
# 返回的结果
# ISO-8859-1

print(req.text)
print(req.content)
